//学号唯一性验证
function ghyz(path){
	var uId = $("#gh").val();
	/*alert(uId+"  "+path);*/
	uId = uId.replace(/(^\s+)|(\s+$)/g, "");
	if(uId==null || uId==""){
		$("#exit").remove();
	}
	var gh = {"uId":uId};
	if(uId!=0 && ""!=uId){
		$.ajax({
			type:"post",
			url:path,
			contentType:"application/json; charset=UTF-8",
			dataType:"json",
			data:JSON.stringify(gh),
			success:function(data){
				if(data.code=="true"){
					$("#yggh").css({"font-color":"1px solid #A94442"});
					$("#gh").css({"border":"1px solid #A94442"});
					if($("#exit").length<=0){
						$("#ghDiv").addClass("has-error");
						$("#gh").after("<p class='' id='exit' style='color:#A94442;margin-left:5px;font-size:12px;'>学号已存在</p>");
						//$("#gh").after("<small class='help-block' id='exit'>学号已存在啦</small>");
					}
//					$(":button")attr("disabled","disabled");
				}else{
					$("#yggh").css({"font-color":"1px solid #A94442"});
					$("#gh").css({"border":"1px solid #008000"});
					$("#exit").remove();
				}
			}
		});
	}else{
		/*alert("uId等于空");*/
	}
	
	
	
}